cmake_minimum_required(VERSION 3.20)

project(cppdapTest0)

set(CMAKE_CXX_STANDARD 17)

#设置cmake模块路径包含
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})

#设置通用的搜索文件
set(SourceFileTypes "./*.h" "./*.cpp" "./*.hpp")
#设置输出路径
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

include(cppdap)

file(GLOB SourceFiles ${SourceFileTypes})
add_executable(${PROJECT_NAME}
        ${SourceFiles}
)
target_link_libraries(${PROJECT_NAME}
        PRIVATE
        cppdap
        )
